// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "Kismet/BlueprintAsyncActionBase.h"
#include "DestinyHttpActionBase.generated.h"


DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FDResponsDeleget,FString,Data);

/**
 * 
 */
UCLASS()
class KSBARRAGE_API UDestinyHttpActionBase : public UBlueprintAsyncActionBase
{
	GENERATED_BODY()
public:
	UPROPERTY()
	FString TempUrl;
	UPROPERTY()
	FString TempData;
	UPROPERTY(BlueprintAssignable)
	FDResponsDeleget OnReqSuccess;
	UPROPERTY(BlueprintAssignable)
	FDResponsDeleget OnReqFail;

	UFUNCTION(BlueprintCallable, meta = (DisplayName = "Http请求", Wordkeys = "http"), Category= "网络工具")
	static UDestinyHttpActionBase* HttpRequest(FString Url,FString Data);

	virtual void Activate() override;
	
	
};
